package com.ny.demo;

public class Alipay implements Pay{
    double m =200;

    @Override
    public void pay(double money) {
        if (m>=money){
            System.out.println("支付宝支付"+money);
            m=m-money;
            System.out.println("你的余额为："+m);
        }
        else {
            System.out.println("你的余额不足");
        }
    }
}
